<template tag="以下文档内容为hycli自动生成">
  <div style="height: 100%">
    <div style="margin:0.8rem;"><h5 style="display:inline">上线部署</h5><span style="margin-left: 0.5rem; color:#999"> 系统上线情况管理</span>
        <ddmenu :menuList="lob_idList" @valueChanged="onlob_idChange" v-model="form_aaabz.lob_id" menuType="my_business_line" ></ddmenu>
    </div>
    <hr style="margin-top:0;color:#999"/>
<div class="query">
    
    <el-form :model="form_aaabz" inline >
        <!-- 日期控件个数： 3 -->
        <el-form-item>
            <!--多日期范围控件 -->
            <el-select v-model="form_aaabz.single_date_range_name" filterable placeholder="日期类型" style="width:120px;" class="prepend">
                <el-option
                v-for="item in multiQueryDateRange"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
        </el-select>
            <el-date-picker :shortcuts="shortcuts" style="width: 200px" v-model="form_aaabz.single_date_range_value" type="daterange" start-placeholder="开始日期"
                end-placeholder="结束日期" format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
        </el-form-item>
        <!--上线计划 下拉控件多选 -->
        <el-form-item>
            <el-select v-model="form_aaabz.plan_id" filterable clearable multiple collapse-tags  style="width: 140px"
            collapse-tags-tooltip placeholder="上线计划">
                <el-option v-for="item in plan_idList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!-- 控件个数：[{"index":124,"raw":"name","name":"name","cname":"Name","type":{"raw":"varchar2(64)","name":"varchar2","len":64,"dlen":0},"defValue":"","allowNull":false,"constraints":["l","le","c","q","u","DN","lw(120)","v","x","rows(1)","#like"],"desc":{"raw":"名称","name":"名称"}} {"index":141,"raw":"deloy_content","name":"deloy_content","cname":"DeloyContent","type":{"raw":"varchar2(2000)","name":"varchar2","len":2000,"dlen":0},"defValue":"","allowNull":false,"constraints":["le","q","c","u","rows(3)","v","#like"],"desc":{"raw":"发布内容","name":"发布内容"}}] -->
         <el-form-item>
            <el-input clearable style="width: 180px" v-model="form_aaabz.single_text_value" maxlength="32"
                placeholder="关键字" >
                <template #prepend>
                    <el-select v-model="form_aaabz.single_text_name" placeholder="查询类型" style="width:84px;">
                        <el-option
                        v-for="item in multiQueryText"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                      </el-select>
                  </template>
            </el-input>
        </el-form-item>

        <span class="ddl">
        </span>
        <el-form-item>
            <el-space wrap>
                <el-button type="primary" icon="Search" @click="onQuery(true)">查询</el-button>
                <el-button :type="$js.page.tagColor(0)"  icon="Plus"  @click="show_cmpnt_aaahj">上线方案</el-button>
            </el-space>
        </el-form-item>
        

        <!-- xtabs -->
        

    </el-form>
</div>
<div>
   <aaahj ref="cmpnt_aaahj" @onsaved="onQuery"></aaahj>
   <aaahh ref="cmpnt_aaahh" @onsaved="onQuery"></aaahh>
   <aaahg ref="cmpnt_aaahg" @onsaved="onQuery"></aaahg>
   <aaahf ref="cmpnt_aaahf" @onsaved="onQuery"></aaahf>
   <aaahi ref="cmpnt_aaahi" @onsaved="onQuery"></aaahi>
</div>
<div class="list">
    <el-table :data="dataList_aaabz"
    
    v-loading="conf.loading" stripe  style="width: 100%;height:calc(100vh - 160px)"
         empty-text="无数据">le
<el-table-column width="24px" type="expand">
    <template #default="view">
        <el-row :gutter="24">
            <el-col :span="5" class="text-right" style="min-height:26px">编号:</el-col>
            <el-col :span="7" v-text="view.row.le_deploy_id" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">上线计划:</el-col>
            <el-col :span="7" v-text="view.row.plan_id_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">版本:</el-col>
            <el-col :span="7" v-text="view.row.le_deloy_version" style="min-height:26px" :class="$js.page.colorful(view.deloy_version,'deloy_version')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">名称:</el-col>
            <el-col :span="7" v-html="view.row.le_name||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">预计开始:</el-col>
            <el-col :span="7" v-text="view.row.le_deloy_start" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">预计完成:</el-col>
            <el-col :span="7" v-text="view.row.le_deloy_finish" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">时长(小时):</el-col>
            <el-col :span="7" v-text="view.row.le_deloy_duration" style="min-height:26px" :class="$js.page.colorful(view.deloy_duration,'deloy_duration')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">发布类型:</el-col>
            <el-col :span="7" v-text="view.row.deloy_type_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">发布系统:</el-col>
            <el-col :span="7" v-text="view.row.deloy_system_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">前端:</el-col>
            <el-col :span="7" v-text="view.row.nmaster_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">后端:</el-col>
            <el-col :span="7" v-text="view.row.bmaster_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">流程:</el-col>
            <el-col :span="7" v-text="view.row.fmaster_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">部署:</el-col>
            <el-col :span="7" v-text="view.row.omaster_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.omaster,'omaster')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">测试验收:</el-col>
            <el-col :span="7" v-text="view.row.tmaster_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">产品验收:</el-col>
            <el-col :span="7" v-text="view.row.pmaster_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.pmaster,'pmaster')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">上线文档:</el-col>
            <el-col :span="7" style="min-height:26px"
            >
                <el-link target="_blank" type="primary" :href="view.row.le_url" v-if="view.row.le_url" :title="view.row.le_url">查看</el-link>
            </el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">状态:</el-col>
            <el-col :span="7" v-text="view.row.status_label" style="min-height:26px"
              :class="$js.page.colorful(view.row.status,'status')" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">创建人:</el-col>
            <el-col :span="7" v-text="view.row.creator_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">创建时间:</el-col>
            <el-col :span="7" v-text="view.row.le_create_time" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">发布风险:</el-col>
            <el-col :span="7" v-html="view.row.le_effect_detail||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">发布内容:</el-col>
            <el-col :span="7" v-html="view.row.le_deloy_content||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">说明:</el-col>
            <el-col :span="7" v-html="view.row.le_memo||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">业务线:</el-col>
            <el-col :span="7" v-text="view.row.lob_id_label" style="min-height:26px"
              ></el-col>
        </el-row>
    </template>
</el-table-column>
        
        	<!--deploy_id text -->
        <el-table-column  show-overflow-tooltip    align="center" label="编号" >
            <template #default="scope">
                  <span>{{ scope.row.deploy_id||'-' }}</span>
              </template>
        </el-table-column>
        	<!--plan_id multiselect -->
        <el-table-column   v-if="$size.gt('m')"   min-width="200"   prop="plan_id" align="center" label="上线计划">
            <template #default="scope">
                <span 
                    v-text="scope.row.plan_id_label"></span>
            </template>
        </el-table-column>
        	<!--deloy_version text -->
        <el-table-column  show-overflow-tooltip    align="center" label="版本" >
            <template #default="scope">
                  <span>{{ scope.row.deloy_version||'-' }}</span>
              </template>
        </el-table-column>
        	<!--name text -->
        <el-table-column  show-overflow-tooltip   min-width="120"   align="center" label="名称" >
            <template #default="scope">
                  <span>{{ scope.row.name||'-' }}</span>
              </template>
        </el-table-column>
        	<!--deloy_start date -->
        <el-table-column  show-overflow-tooltip    align="center" label="预计开始" >
            <template #default="scope">
                  <span>{{ scope.row.deloy_start||'-' }}</span>
              </template>
        </el-table-column>
        	<!--deloy_finish date -->
        <el-table-column  v-if="$size.gt('m')"  show-overflow-tooltip   min-width="120"   align="center" label="预计完成" >
            <template #default="scope">
                  <span>{{ scope.row.deloy_finish||'-' }}</span>
              </template>
        </el-table-column>
        	<!--deloy_duration text -->
        <el-table-column  show-overflow-tooltip    align="center" label="时长(小时)" >
            <template #default="scope">
                  <span>{{ scope.row.deloy_duration||'-' }}</span>
              </template>
        </el-table-column>
        	<!--deloy_type tag -->
        <el-table-column    min-width="120"  prop="deloy_type" align="center" label="发布类型">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.deloy_type,'deloy_type')" round v-text="scope.row.deloy_type_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--omaster multicheck -->
        <el-table-column   v-if="$size.gt('m')"    prop="omaster" align="center" label="部署">
            <template #default="scope">
                <span :class="$js.page.colorful(scope.row.omaster,'omaster')" 
                    v-text="scope.row.omaster_label"></span>
            </template>
        </el-table-column>
        	<!--tmaster tag -->
        <el-table-column    min-width="120"  prop="tmaster" align="center" label="测试验收">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.tmaster,'tmaster')" round v-text="scope.row.tmaster_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--pmaster multicheck -->
        <el-table-column    min-width="120"   prop="pmaster" align="center" label="产品验收">
            <template #default="scope">
                <span :class="$js.page.colorful(scope.row.pmaster,'pmaster')" 
                    v-text="scope.row.pmaster_label"></span>
            </template>
        </el-table-column>
        	<!--status tag -->
        <el-table-column    min-width="60"  prop="status" align="center" label="状态">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.status,'status')" round v-text="scope.row.status_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--create_time date -->
        <el-table-column  v-if="$size.gt('m')"  show-overflow-tooltip    align="center" label="创建时间" >
            <template #default="scope">
                  <span>{{ scope.row.create_time||'-' }}</span>
              </template>
        </el-table-column>

<el-table-column fixed="right" align="center" label="操作" width="180">
    <template #default="scope">
        <div class="opts">
            <el-button   type="text" @click="show_cmpnt_aaahh(scope.row)" >详情 </el-button>
            <el-button   type="text" @click="show_cmpnt_aaahg(scope.row)"  v-if='
            scope.row.status!=0'>编辑 </el-button>
            <el-dropdown  @command="(command) => show_cmpnt(command, scope.row)">
                <span class="el-dropdown-link">
                更多
                </span>
                <template #dropdown>
                  <el-dropdown-menu>
            <el-dropdown-item command="aaahf"  v-if='
            scope.row.status!=0'>完成 </el-dropdown-item>
            <el-dropdown-item command="aaahi" >删除 </el-dropdown-item>
                </el-dropdown-menu>
            </template>
            </el-dropdown>
        </div>
    </template>
</el-table-column>
    </el-table>
    <el-pagination :currentPage="form_aaabz.pi" :page-size="form_aaabz.ps"
        style="position: absolute; right: 30px;bottom:6px;" :page-sizes="[10,15,20,30, 50, 100]" :background="false" small
        layout="total,sizes,prev, pager, next, jumper" :total="total_aaabz" @size-change="handleSizeChange"
        @current-change="handleCurrentChange" />
</div>
  </div>
</template>
<script>
// 上线方案
import aaahj from "@/views/ws/dev/dev_deploy.add"
// 详情
import aaahh from "@/views/ws/dev/dev_deploy.view"
// 编辑
import aaahg from "@/views/ws/dev/dev_deploy.edit"
// 完成
import aaahf from "@/views/ws/dev/dev_deploy.cnfrm"
// 删除
import aaahi from "@/views/ws/dev/dev_deploy.cnfrm"
// 业务线
import ddmenu from "@/views/cmpnts/ddMenu.vue"



export default {
components: {
    aaahj,
    aaahh,
    aaahg,
    aaahf,
    aaahi,
     ddmenu,
},
data() {
  return {
    shortcuts: this.$js.page.latestDays(),
    cmpnt_funcs:{},
    conf: {
      loading: false,
      progressColor: this.$theia.env.conf.progress || []
    },
    ganttIdx: -1,
        form_aaabz: {
            pi: 1,
            ps: 15,
            disabled:false,
            single_date_range_name:"",
            single_date_range_value:[],
            single_text_name:"",
            single_text_value:"",
            plan_id:[],
            name:"",
            deloy_start:"",
            deloy_finish:"",
            create_time:"",
            deloy_content:"",
            lob_id:"",
            },
            plan_idExts:[],
            plan_idList:[],
            deloy_typeList:[],
            deloy_systemList:[],
            nmasterExts:[],
            nmasterList:[],
            bmasterExts:[],
            bmasterList:[],
            fmasterExts:[],
            fmasterList:[],
            omasterExts:[],
            omasterList:[],
            tmasterList:[],
            pmasterExts:[],
            pmasterList:[],
            statusList:[],
            creatorList:[],
            lob_idList:[],
            dataList_aaabz:[],
            multiQueryDateRange:[{label:"预计开始",value:"deloy_start"},{label:"预计完成",value:"deloy_finish"},{label:"创建时间",value:"create_time"},],
            multiQueryText:[{label:"名称",value:"name"},{label:"发布内容",value:"deloy_content"},],
            total_aaabz:0,
            note_dataList:[],
};
  },
mounted() {
  this.loadEnums_aaabz()
  this.form_aaabz.lob_id = this.$theia.user.get("lob_id")
  this.form_aaabz.single_date_range_name = (this.multiQueryDateRange[0]||{}).value
  this.form_aaabz.single_text_name = (this.multiQueryText[0]||{}).value
  this.cmpnt_funcs["aaahj"] = this.show_cmpnt_aaahj
  this.cmpnt_funcs["aaahh"] = this.show_cmpnt_aaahh
  this.cmpnt_funcs["aaahg"] = this.show_cmpnt_aaahg
  this.cmpnt_funcs["aaahf"] = this.show_cmpnt_aaahf
  this.cmpnt_funcs["aaahi"] = this.show_cmpnt_aaahi

  this.form_aaabz = Object.assign(this.form_aaabz,this.$route.params)
  this.queryData_aaabz ()
    },
methods: {
  ganttChange(id) {
      this.ganttIdx = id
    },

queryData_aaabz(mform = {},nform={}){
    //构建查询参数
    let queryForm = Object.assign({},this.form_aaabz)
    queryForm = Object.assign(queryForm,nform||{})
    
    //处理多个日期选择
    queryForm[this.form_aaabz.single_date_range_name] = this.form_aaabz.single_date_range_value
    queryForm[this.form_aaabz.single_text_name] = this.form_aaabz.single_text_value
   
    //处理日期范围选择
      queryForm.plan_id = (queryForm.plan_id||[]).join(",")
      queryForm.start_deloy_start = null
      queryForm.end_deloy_start = null
    if(queryForm.deloy_start && queryForm.deloy_start.length > 1){
      queryForm.start_deloy_start = queryForm.deloy_start[0]
      queryForm.end_deloy_start = queryForm.deloy_start[1]
    }
      queryForm.start_deloy_finish = null
      queryForm.end_deloy_finish = null
    if(queryForm.deloy_finish && queryForm.deloy_finish.length > 1){
      queryForm.start_deloy_finish = queryForm.deloy_finish[0]
      queryForm.end_deloy_finish = queryForm.deloy_finish[1]
    }
      queryForm.start_create_time = null
      queryForm.end_create_time = null
    if(queryForm.create_time && queryForm.create_time.length > 1){
      queryForm.start_create_time = queryForm.create_time[0]
      queryForm.end_create_time = queryForm.create_time[1]
    }

    queryForm[this.form_aaabz.single_date_range_name] = null
    queryForm.single_date_range_value = null
    queryForm.single_date_range_name = null

    queryForm.single_text_value = null
    queryForm.single_text_name = null
 
    //处理关联表dev_deploy dev_deploy 
   
    //发送查询请求
    let that = this
    that.conf.loading = true
    //构建统计查询
  //数据查询
  this.$theia.http.get("/ws/dev/deploy/query",queryForm).then(res=>{
      if((res.items||[]).length < (queryForm.ps||10)){
        that.form_aaabz.disabled = true
      }
      that.conf.loading = false
      that.dataList_aaabz = res.items||[]
      that.total_aaabz = res.count
      that.resetItemData_aaabz(that,that.dataList_aaabz)
    });
  },

  resetItemData_aaabz(that,lst){
    lst.forEach(item => {
      item.__raw = Object.assign({}, item)
    item.plan_id_label = that.$theia.enum.getName("dev_plan",item.plan_id)
    item.deloy_type_label = that.$theia.enum.getName("deloy_type",item.deloy_type)
    item.deloy_system_label = that.$theia.enum.getName("olb_system",item.deloy_system)
    item.nmaster_label = that.$theia.enum.getName("dmaster",item.nmaster)
    item.bmaster_label = that.$theia.enum.getName("dmaster",item.bmaster)
    item.fmaster_label = that.$theia.enum.getName("dmaster",item.fmaster)
    item.omaster_label = that.$theia.enum.getName("dmaster",item.omaster)
    item.tmaster_label = that.$theia.enum.getName("tmaster",item.tmaster)
    item.pmaster_label = that.$theia.enum.getName("pmaster",item.pmaster)
    item.status_label = that.$theia.enum.getName("deploy_status",item.status)
    item.creator_label = that.$theia.enum.getName("user_account",item.creator)
    item.lob_id_label = that.$theia.enum.getName("my_business_line",item.lob_id)
    item.deploy_id_progress = item.deploy_id
    item.plan_id_progress = item.plan_id
    item.deloy_version_progress = item.deloy_version
    item.name_progress = item.name
    item.deloy_start_progress = item.deloy_start
    item.deloy_finish_progress = item.deloy_finish
    item.deloy_duration_progress = item.deloy_duration
    item.deloy_type_progress = item.deloy_type
    item.deloy_system_progress = item.deloy_system
    item.nmaster_progress = item.nmaster
    item.bmaster_progress = item.bmaster
    item.fmaster_progress = item.fmaster
    item.omaster_progress = item.omaster
    item.tmaster_progress = item.tmaster
    item.pmaster_progress = item.pmaster
    item.url_progress = item.url
    item.status_progress = item.status
    item.creator_progress = item.creator
    item.create_time_progress = item.create_time
    item.effect_detail_progress = item.effect_detail
    item.deloy_content_progress = item.deloy_content
    item.memo_progress = item.memo
    item.lob_id_progress = item.lob_id
    item.le_deploy_id = item.deploy_id
    item.le_plan_id = item.plan_id
    item.le_deloy_version = item.deloy_version
    item.le_name = item.name
    item.le_deloy_start = item.deloy_start
    item.le_deloy_finish = item.deloy_finish
    item.le_deloy_duration = item.deloy_duration
    item.le_deloy_type = item.deloy_type
    item.le_deloy_system = item.deloy_system
    item.le_nmaster = item.nmaster
    item.le_bmaster = item.bmaster
    item.le_fmaster = item.fmaster
    item.le_omaster = item.omaster
    item.le_tmaster = item.tmaster
    item.le_pmaster = item.pmaster
    item.le_url = item.url
    item.le_status = item.status
    item.le_creator = item.creator
    item.le_create_time = item.create_time
    item.le_effect_detail = item.effect_detail
    item.le_deloy_content = item.deloy_content
    item.le_memo = item.memo
    item.le_lob_id = item.lob_id
    item.deloy_start = that.$theia.str.dateFormat(item.deloy_start,'MM/dd HH')
    item.deloy_finish = that.$theia.str.dateFormat(item.deloy_finish,'MM/dd HH')
    item.create_time = that.$theia.str.dateFormat(item.create_time,'MM/dd HH')
    if(item.children){
      that.resetItemData_aaabz(that,item.children)
    }
  });
  },
    loadEnums_aaabz(){
        //上线计划
        this.plan_idList = this.$theia.enum.get("dev_plan","",this.$theia.user.get("lob_id"),false,"")
        //业务线
        this.lob_idList = this.$theia.enum.getTree("my_business_line","","" ,99)
        //上线计划
        this.plan_idList = this.$theia.enum.get("dev_plan","",this.$theia.user.get("lob_id"),false,"")
        //发布类型
        this.deloy_typeList = this.$theia.enum.get("deloy_type","","" ,false,"")
        //部署
        this.omasterList = this.$theia.enum.get("dmaster","5",this.$theia.user.get("lob_id"),false,"")
        //测试验收
        this.tmasterList = this.$theia.enum.get("tmaster","",this.$theia.user.get("lob_id"),false,"")
        //产品验收
        this.pmasterList = this.$theia.enum.get("pmaster","",this.$theia.user.get("lob_id"),false,"")
        //状态
        this.statusList = this.$theia.enum.get("deploy_status","","" ,false,"")
    },

  handleSizeChange(ps){
    this.form_aaabz.ps = ps
    this.onQuery(true)
  },
  onlob_idChange(v){
    this.$theia.user.set("lob_id",v)
    this.loadEnums_aaabz()
    this.onQuery(true)
  },
  handleCurrentChange(pi){
    this.form_aaabz.pi = pi
    this.onQuery()
  },
  onQuery(refresh){
    if(refresh){
      this.form_aaabz.pi = 1
    }
    this.queryData_aaabz ()
  },
show_cmpnt(cmd,row){
  if(this.cmpnt_funcs[cmd]){
    this.cmpnt_funcs[cmd](row)
  }
},
  //详情
  show_cmpnt_aaahh(fm = {}){
    let query = {} 
    query.deploy_id = fm.deploy_id|| fm.le_deploy_id 
    query.plan_id = fm.plan_id|| fm.le_plan_id 
    query.deloy_version = fm.deloy_version|| fm.le_deloy_version 
    query.name = fm.name|| fm.le_name 
    query.deloy_start = fm.deloy_start|| fm.le_deloy_start 
    query.deloy_finish = fm.deloy_finish|| fm.le_deloy_finish 
    query.deloy_duration = fm.deloy_duration|| fm.le_deloy_duration 
    query.deloy_type = fm.deloy_type|| fm.le_deloy_type 
    query.deloy_system = fm.deloy_system|| fm.le_deloy_system 
    query.nmaster = fm.nmaster|| fm.le_nmaster 
    query.bmaster = fm.bmaster|| fm.le_bmaster 
    query.fmaster = fm.fmaster|| fm.le_fmaster 
    query.omaster = fm.omaster|| fm.le_omaster 
    query.tmaster = fm.tmaster|| fm.le_tmaster 
    query.pmaster = fm.pmaster|| fm.le_pmaster 
    query.url = fm.url|| fm.le_url 
    query.status = fm.status|| fm.le_status 
    query.creator = fm.creator|| fm.le_creator 
    query.create_time = fm.create_time|| fm.le_create_time 
    query.effect_detail = fm.effect_detail|| fm.le_effect_detail 
    query.deloy_content = fm.deloy_content|| fm.le_deloy_content 
    query.memo = fm.memo|| fm.le_memo 
    query.lob_id = fm.lob_id|| fm.le_lob_id 
    query.deploy_id = fm.deploy_id

      //2023.4.18添加---

    query.$title="详情"
    this.$refs.cmpnt_aaahh.show(query)
  },
  //上线方案
  show_cmpnt_aaahj(fm = {}){
    let query = {} 
    query.plan_id = fm.plan_id|| fm.le_plan_id 
    query.deloy_version = fm.deloy_version|| fm.le_deloy_version 
    query.name = fm.name|| fm.le_name 
    query.deloy_start = fm.deloy_start|| fm.le_deloy_start 
    query.deloy_finish = fm.deloy_finish|| fm.le_deloy_finish 
    query.deloy_duration = fm.deloy_duration|| fm.le_deloy_duration 
    query.deloy_type = fm.deloy_type|| fm.le_deloy_type 
    query.deloy_system = fm.deloy_system|| fm.le_deloy_system 
    query.nmaster = fm.nmaster|| fm.le_nmaster 
    query.bmaster = fm.bmaster|| fm.le_bmaster 
    query.fmaster = fm.fmaster|| fm.le_fmaster 
    query.omaster = fm.omaster|| fm.le_omaster 
    query.tmaster = fm.tmaster|| fm.le_tmaster 
    query.pmaster = fm.pmaster|| fm.le_pmaster 
    query.url = fm.url|| fm.le_url 
    query.status = fm.status|| fm.le_status 
    query.effect_detail = fm.effect_detail|| fm.le_effect_detail 
    query.deloy_content = fm.deloy_content|| fm.le_deloy_content 
    query.memo = fm.memo|| fm.le_memo 
    query.deploy_id = fm.deploy_id

      //2023.4.18添加---

    query.$title="上线方案"
    this.$refs.cmpnt_aaahj.show(query)
  },
  //编辑
  show_cmpnt_aaahg(fm = {}){
    let query = {} 
    query.plan_id = fm.plan_id|| fm.le_plan_id 
    query.deloy_version = fm.deloy_version|| fm.le_deloy_version 
    query.name = fm.name|| fm.le_name 
    query.deloy_start = fm.deloy_start|| fm.le_deloy_start 
    query.deloy_finish = fm.deloy_finish|| fm.le_deloy_finish 
    query.deloy_duration = fm.deloy_duration|| fm.le_deloy_duration 
    query.deloy_type = fm.deloy_type|| fm.le_deloy_type 
    query.deloy_system = fm.deloy_system|| fm.le_deloy_system 
    query.nmaster = fm.nmaster|| fm.le_nmaster 
    query.bmaster = fm.bmaster|| fm.le_bmaster 
    query.fmaster = fm.fmaster|| fm.le_fmaster 
    query.omaster = fm.omaster|| fm.le_omaster 
    query.tmaster = fm.tmaster|| fm.le_tmaster 
    query.pmaster = fm.pmaster|| fm.le_pmaster 
    query.url = fm.url|| fm.le_url 
    query.status = fm.status|| fm.le_status 
    query.effect_detail = fm.effect_detail|| fm.le_effect_detail 
    query.deloy_content = fm.deloy_content|| fm.le_deloy_content 
    query.memo = fm.memo|| fm.le_memo 
    query.deploy_id = fm.deploy_id

      //2023.4.18添加---

    query.$title="编辑"
    this.$refs.cmpnt_aaahg.show(query)
  },
  //完成
  show_cmpnt_aaahf(fm = {}){
    let query = {} 
    query.name = fm.name|| fm.le_name 
    query.deploy_id = fm.deploy_id

      //2023.4.18添加---

    query.$title="完成"
    this.$refs.cmpnt_aaahf.show_aaahf(query)
  },
  //删除
  show_cmpnt_aaahi(fm = {}){
    let query = {} 
    query.deploy_id = fm.deploy_id|| fm.le_deploy_id 
    query.deploy_id = fm.deploy_id

      //2023.4.18添加---

    query.$title="删除"
    this.$refs.cmpnt_aaahi.show_aaahi(query)
  },
},
};
</script>
<style>
.el-dialog{
  border-radius:5px !important
}
</style>
<style scoped>
.el-form-item {
  margin-right: 10px !important;
}

.opts .el-button--small {
  margin-left: 0px;
  padding-left: 0px;
  margin-right: 4px;
}

/deep/.el-table td.el-table__cell div {
  vertical-align: middle;
}
/deep/.el-button+.el-dropdown{
  margin-left:0px;
}
/deep/.el-button+.el-button{
  margin-left:0px;
}
.el-button{
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.blist {
  margin-bottom: 8px;
  width: 100%;
}

.blist .el-radio-group {
  margin-right: 8px;
}

.ddl {
  margin-bottom: 8px;
  width: 100%;

}

.ddl .el-dropdown {
  margin-right: 8px;
}

.listbar {
  margin-bottom: 8px;
  text-align: center;
}
 .el-dropdown-link {
  cursor: pointer;
  color: var(--el-color-primary);
  display: flex;
  align-items: center;
  font-size: 0.65rem;
}
/deep/.el-button--small{
  padding: 5px 4px;
}

.prepend /deep/.el-input__wrapper{
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.prepend+/deep/.el-date-editor{
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  border-left:0;
}

</style>